package com.lrs.java.spring.core.$03_DependencyInject;

import com.lrs.java.spring.core.$01_helloworld.HelloApi;

public class HelloImpl4LocalAndParent implements HelloApi {

    private String message;
    private int index;
    
    //需要空的构造器
    public HelloImpl4LocalAndParent() {
    }
    
    public void setMessage(String message) {
        this.message = message;
    }
    
    public void setIndex(int index) {
        this.index = index;
    }
    
    @Override
    public void sayHello() {
        System.out.println(index + ":" + message);
    }
    
}
